package com.wanjia.seal.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanjia.seal.manager.entity.codetb;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CodeTBMapper extends BaseMapper<codetb> {
    List<codetb> findByCode(Integer pageNum, Integer pageSize);
    codetb findByCodeID(Integer CodeID);
    Integer createByCode(codetb codetb);
    Integer updateByCode(Integer CodeID,String NewCodeName,String NewReserved);
    Integer deleteByCode(Integer CodeID);
    List<codetb> findByCodeType(Integer CodeID,Integer pageNum, Integer pageSize);
    codetb findByCodeTypeID(Integer CodeID,Integer SonCodeID);
    Integer deleteByCodeType(Integer CodeID,Integer SonCodeID);
    Integer createByCodeType(Integer CodeID,Integer NewCodeID,String CodeName,String Reserved);
    Integer updateByCodeType(Integer codeType,Integer NewCodeID,String NewCodeName,String NewReserved);
    Integer findByCodeTOTAL();
    Integer findByCodeTypeTOTAL(Integer CodeID);

}
